import { getUrl } from '../utils/http'

// 获取城市列表数据
export const GetCity = (data) => {
  return getUrl("/area/city", data)
}

//热门城市
export const GetHostCity = (data) => {
  return getUrl('/area/hot', data)
}

//定位城市
export const PostionsCity = (data) => {
  return getUrl('/area/info', data)
}

export const GetMap = (data) => {
  return getUrl("/area/map", data)
}
//获取存入本地的定位城市
export const getCity = () => localStorage.getItem('cityVal');

//设置存入本地的定位城市
export const setCity = (val) => localStorage.setItem('cityVal', JSON.stringify(val));
